package com.yangye.otherdemo.staticdemo;

import java.util.Random;

/**
 * @author yangye
 * @date 2020/08/12
 */
public class Demo2 {
	public static void main(String[] args) {
		System.out.println(A.num);
	}

	static class A {
		public static final int num = new Random().nextInt();

		static {
			System.out.println("A的静态代码块");
		}
	}
}
